using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Dao;
using Common;
using Newtonsoft.Json;
using Microsoft.AspNetCore.Http;
using System.Data;
using System.Text;
using Model;

namespace SettingServer.Controllers
{
    /// <summary>
    /// 
    /// </summary>
    public class Permit_UserController : BaseController
    {
        /// <summary>
        ///
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        [HttpGet]
        public string GetListUser(int page, int limit)
        {
            JsonStructureValue jsondata = new JsonStructureValue();
            int count = 0;
            jsondata.code = "0";
            List<UserList> menuBM = new Permit_UserDM().GetListUser(page, limit, ref count);
            jsondata.count = count;
            jsondata.msg = "";
            jsondata.data = menuBM;
            string data = JsonConvert.SerializeObject(jsondata);
            return data;
        }
    }
}
